const ESLintPlugin = require('eslint-webpack-plugin')
module.exports = {
    mode: "development",
    //控制台中报错的位置和源码中位置保持一样
    devtool: "eval-source-map",
    devServer: {
        port: 8080,
        open: true
    },
    plugins: [
        new ESLintPlugin({
            eslintPath: "eslint",
            extensions: ['js', 'jsx', 'ts', 'tsx'],
            exclude: ['node_modules'],
            fix: false,
            formatter: "stylish"
        })
    ]
}


